package com.vooda.dao;

import com.vooda.entity.HomePage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author KennyDavid
 */
public interface HomePageDao extends JpaRepository<HomePage, Long>, JpaSpecificationExecutor {

    /**
     * 查找所有轮播图
     *
     * @param status 状态
     * @return list
     */
    List<HomePage> findAllByStatusOrderByCreateTimeDesc(Boolean status);
}
